Skip to content

Conversation

@zengqiu
Copy link
Contributor

@zengqiu zengqiu commented Oct 17, 2025

修复 GlobalWorkerOptions.workerPort = new PdfjsWorker() 报错。
支持直接传 Blob 对象,并且使用时间戳为 Blob 对象自动

@abu3389
Copy link
Contributor

abu3389 commented Nov 1, 2025

well done. 感谢参与建设完善

@abu3389 abu3389 merged commit e492c00 into zyl-ui:master Nov 1, 2025
@abu3389
Copy link
Contributor

abu3389 commented Nov 1, 2025

Thanks for your PR! 👍

This fix is correct. Using file-loader to bundle the Worker file is a good solution.

Pros:

  • ✅ Fixes the Worker initialization error
  • ✅ Local bundling, faster loading
  • ✅ No external CDN dependency

Suggestion:
Consider adding comments to explain the difference between the two approaches, so users can choose based on their needs.

I'll merge this after testing. Thanks again for contributing! 🎉

@abu3389
Copy link
Contributor

abu3389 commented Nov 1, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants